/**
 * Created by zyy on 15/6/26.
 * zhangyuyu@superjia.com
 */
var utils = require('./utils')
var filter = {
    login: function* (next) {
        var user = this.locals._user
        if (!user) {
            utils.failed(this, 10001)
            return true
        }
        yield next
    }
};

module.exports = filter;